﻿<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags" %>
<!DOCTYPE html>
<html>
	<head>
		<title>
		<c:choose>
			<c:when test="${status==0}">
				<spring:message code="YYK-title-100010" /></c:when>
			<c:when test="${status==7}">
				<spring:message code="YYK-title-100012" /></c:when>
			<c:when test="${status==100}">
				<spring:message code="YYK-title-100015" /></c:when>
			<c:otherwise><spring:message code="YYK-title-100011" /></c:otherwise>
		</c:choose>
		</title>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
		<meta name="viewport" content="width=device-width, initial-scale=0.0, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0" />
		<meta name=”apple-mobile-web-app-capable” content=”yes” />
	<script type="text/javascript">
	;(function (doc, win) {
	    var docEl = doc.documentElement,
	      resizeEvt = 'orientationchange' in window ? 'orientationchange' : 'resize',
	      recalc = function () {
	        var clientWidth = docEl.clientWidth;
	        var clientHeight = docEl.clientHeight;
	        if (!clientWidth) return;
	        if (clientWidth < clientHeight) {
	            docEl.style.fontSize = 100 * (clientWidth / 640) + 'px';
	        }else{
	          docEl.style.fontSize = 50 * (clientWidth / 1136) + 'px';
	        }
	      };
	      recalc();
	    if (!doc.addEventListener) return;
	    win.addEventListener(resizeEvt, recalc, false);
	    doc.addEventListener('DOMContentLoaded', recalc, false);   
	})(document, window);
	</script>
		
		<link rel="stylesheet" type="text/css" href="${static_server}/static/css/default.css">
		<link rel="stylesheet" href="${server}/static/css/iconfont/iconfont.css">
		<link rel="stylesheet" href="${static_server}/static/css/receivingConfirmation.css">
		<script type="text/javascript" src="${static_server}/static/js/resize.js"></script>
		<script type="text/javascript" src="${static_server}/static/js/iscroll.js"></script>
		<script type="text/javascript" src="${static_server}/static/js/zepto.min.js"></script>
		<script type="text/javascript" src="${static_server}/static/js/user/userOrder.js"></script>
		<link rel="stylesheet" href="${static_server}/static/css/common/zepto.alert.css">
		<script type="text/javascript" src="${static_server}/static/js/common/zepto.alert.js"></script>
	<script type="text/javascript">
	   function goBack(){
			window.location.href=path+"/user/index";
		}
   /*  var myScroll;
    function loaded () {
      myScroll = new IScroll("#wrapper")
    }
    document.addEventListener('DOMContentLoaded',loaded, false); */
	</script>
	</head>
    <body>
 
    <div class="wrap" onload="loaded()">
	<header class="headerToFixed">
		<div class="closeBtn" onclick="javascript:goBack();">
			   <i class="icon iconfont">&#xe60a;</i>
		</div>
	</header>
	<div class="mt1s8 contentWrap">
		<div id="wrapper" class="tops8 bottoms05">
				<div  id="scroller">
					<c:if test="${!empty userOrders }">
					<ul id="userorderList" >
						<c:forEach items="${userOrders }" var="ord" varStatus="uorder">
						<li>	
							<div class="receivingStatusComponent mts15 ">
							<a href="${server}/userorder/show/${ord.orderId}.html">
								<div style=" border-bottom: 1px solid #f0f0f0; box-sizing: border-box;padding:0.2rem;">订单号：${ord.orderNumber}</div>
								<div class="recevingBody" sytle="border-bottom: 1px solid #f0f0f0;">
									<div class="shopImg fl">
										<img src="${static_server}${ord.shopIcon}" alt="">
									</div>
									
									<div class="boxInfo fl">
										
										<p >
											<%-- <a href="${server}/userorder/show/${ord.orderId}.html"> --%>
											<span class="fl boxName text-hidden">${ord.shopName}</span>
											<span class="fr boxtime">
												 <fmt:formatDate value="${ord.orderDateTime}" pattern="yyyy-MM-dd HH:mm:ss" />
											</span>
										<!-- 	</a> -->
										</p>
										<%-- <p class="boxNum"><a href="${server}/userorder/show/${ord.orderId}.html">
										共<span>${ord.boxNum}</span>箱</a></p> --%>
									<c:if test="${status==100}">
										<span class="boxName">
											${ORDER_STATUS_MAP[ord.orderStatus]}</span>
									</c:if>		
										<%-- <a href="${server}/userorder/show/${ord.orderId}.html"> --%>
										<div class="boxAccounts">
											<div class="totalAcount fl"><spring:message code="YYK-20043" /><span id="J_AllAcount" class="redFont">
												<fmt:formatNumber value="${ord.orderPrice}" pattern="€0.00#" /></span></div>
											<div class="saveCompare fr"><spring:message code="YYK-20044" />: <span>
												<fmt:formatNumber value="${ord.orderDomisticDiscountPrice}" pattern="￥0.00#" /></span></div>
										</div><!-- </a> -->
									</div>
								</div>
								</a>
						</li>
						</c:forEach>
					</ul>
					</c:if>
				</div>
		</div>
	</div>
	<footer class="footerToFixed">
	</footer>
</div>
<input type="hidden" id="path" value="${server}"/>
<input type="hidden" id="status" value="${status}"/>
</body>
  
</html>